import Http from '@/common/http';
import CONSTS from '@/common/consts.js'

/**
 * 获取数据字典
 */
export const getDictionary = params => Http.send('get', 'api/Oil/GetDictionary', params);

/**
 * 获取列
 */
export const getColumns = params => Http.send('get', 'api/Oil/GetColumns', params);

/**
 * 获取列
 */
export const createDataByEntity = params => Http.send('post', 'api/Oil/CreateDataByEntity', params);

export const uploadFileUrl = CONSTS.STATICHOST + "api/Oil/UploadFile"

/**
 * require qr content
 */
export const getQRData = params => Http.send('get', 'api/Oil/GetQRData', params);
// CONSTS.STATICHOST + "api/Oil/GetQRData"

export const createHisData = params => Http.send('post', 'api/Oil/CreateHisData', params);
// /api/Oil/CreateHisData